﻿using System;

namespace Daemon.Data.Substructure.Framework.Extension
{
	public static class TypeExtension
	{
		public static object GetDefaultValue(this Type type)
		{
			if (type.IsValueType)
			{
				return Activator.CreateInstance(type);
			}

			return null;
		}
	}
}
